import request from '@/helpers/request'

export const reqOneVehicle = (params) => {
  return request('/api/vehicle/select', {
    method: 'GET',
    params,
  })
}
export const reqGetRealSpeed = (params) => {
  return request('/api/getRealSpeedData', {
    method: 'GET',
    params,
  })
}
export const reqGetLatestPosition = (params) => {
  return request('/api/getLatestPosition', {
    method: 'GET',
    params,
  })
}
export const reqGetStatusDataRead = (params) => {
  return request('/api/getStatusDataRead', {
    method: 'GET',
    params,
  })
}
export const reqOpenOrRealDataRead = (params) => {
  return request('/api/openOrRealDataRead', {
    method: 'POST',
    params,
  })
}
export const reqHistoricalPositionByDate = (params) => {
  return request('/api/getHistoricalPositionByDate', {//获取车辆历史位置信息
    method: 'POST',
    params,
  })
}
export const reqGetOilConsume = (params) =>{//获取车辆油耗
  return request('/api/vehicle/getOilConsume',{
    method:'POST',
    params
  })
} 
// export const reqGetLatePosition = (params) =>{
//   return request('/api/getLatestPosition',{
//     method:'GET',
//     params:params,
//   })
// }

// export const reqGetRealSpeedData = (params)=>{
//   return request('/api//getRealSpeedData',{
//     method:'GET',
//     params:params,
//   })
// }